home *** CD-ROM | disk | FTP | other *** search
- /********************************************************************
- * lindner
- * 3.1.1.1
- * 1993/02/11 18:03:04
- * /home/mudhoney/GopherSrc/CVS/gopher+/object/STRstring.h,v
- * $Status: $
- *
- * Paul Lindner, University of Minnesota CIS.
- *
- * Copyright 1991, 1992 by the Regents of the University of Minnesota
- * see the file "Copyright" in the distribution for conditions of use.
- *********************************************************************
- * MODULE: STRstring.h
- * A dynamic string in C that really wants to be C++
- *********************************************************************
- * Revision History:
- * STRstring.h,v
- * Revision 3.1.1.1 1993/02/11 18:03:04 lindner
- * Gopher+1.2beta release
- *
- * Revision 1.1 1992/12/10 23:27:52 lindner
- * gopher 1.1 release
- *
- *
- *********************************************************************/
-
-
- #ifndef STRstring_H
- #define STRstring_H
-
- struct string_struct {
- int len;
- char *data;
- };
-
- typedef struct string_struct String;
-
- String *STRnew();
- String *STRnewSet(/* char* */);
- String *STRcpy(/* String, String */);
- void STRinit(/* String* */);
- void STRset(/* String*, char* */);
- void STRdestroy(/* String* */);
- #define STRget(s) ((s)->data)
- #define STRlen(s) ((s)->len)
- String* STRcat();
- int STRcmp();
- #endif
-